class AuthRole {
    static belongsTo = [AuthUser, AuthAction]
    static hasMany = [users:AuthUser, actions:AuthAction]
    Set users = new HashSet()
    String name
    
    String toString() {"${name}"}

    boolean equals(Object obj) {
        AuthRole other = obj as AuthRole
        if (!other) {
            return false
        }

        if (name.equals(other.name)) {
            return true;
        }
    }
}	
